package com.ziyun.pop.mall.module.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicLong;

/**
 * @Author:chenxiaoyi
 * @Date:2018/11/6 9:14
 */
@Data
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pop_user_action")
public class PopUserAction implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "url")
    private String url;

    @ApiModelProperty(value = "method")
    private String method;

    //用于记录用户点击 此字段不插入数据库
    @ApiModelProperty(value = "atomicLong")
    @TableField(exist = false)
    private AtomicLong atomicLong = new AtomicLong(1);

    @ApiModelProperty(value = "clickNum")
    private Long clickNum = 1L;

}
